package com.gzpi.hwgggh.entity;

import org.apache.commons.lang.StringUtils;

/**
 * @date : 2021-01-14 10:56
 **/
public class DWTP {

    private String ID;//唯一ID
    private String FID;//外键ID
    private String XZT; //现状图
    private String QWT; //区位图
    private String GHT; //规划图
    private String XZQJT; //现状全景图
    private String GHQJT; //规划全景图
    private String CCQJT; //拆除全景图
    private String GHTR; //规划图（日）
    private String GHTY; //规划图（夜）
    private String CCT; //拆除图

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getFID() {
        return FID;
    }

    public void setFID(String FID) {
        this.FID = FID;
    }

    public String getXZT() {
        return XZT;
    }

    public void setXZT(String XZT) {
        this.XZT = XZT;
    }

    public String getQWT() {
        return QWT;
    }

    public void setQWT(String QWT) {
        this.QWT = QWT;
    }

    public String getGHT() {
        return GHT;
    }

    public void setGHT(String GHT) {
        this.GHT = GHT;
    }

    public String getXZQJT() {
        return XZQJT;
    }

    public void setXZQJT(String XZQJT) {
        this.XZQJT = XZQJT;
    }

    public String getGHQJT() {
        return GHQJT;
    }

    public void setGHQJT(String GHQJT) {
        this.GHQJT = GHQJT;
    }

    public String getCCQJT() {
        return CCQJT;
    }

    public void setCCQJT(String CCQJT) {
        this.CCQJT = CCQJT;
    }

    public String getGHTR() {
        return GHTR;
    }

    public void setGHTR(String GHTR) {
        this.GHTR = GHTR;
    }

    public String getGHTY() {
        return GHTY;
    }

    public void setGHTY(String GHTY) {
        this.GHTY = GHTY;
    }

    public String getCCT() {
        return CCT;
    }

    public void setCCT(String CCT) {
        this.CCT = CCT;
    }



    public String getQwtFileName(){return StrFileName(QWT);}
    public String getXztFileName(){return StrFileName(XZT);}
    public String getGhtFileName(){return StrFileName(GHT);}
    public String getCctFileName(){return StrFileName(CCT);}
    public String getGhtrFileName(){return StrFileName(GHTR);}
    public String getGhtyFileName(){return StrFileName(GHTY);}
    public String StrFileName(String url){
        if (StringUtils.isNotBlank(url)){
            return url.substring(url.lastIndexOf("/")+1);
        }
        return null;
    }

    public String getQwtFilePath(){return StrFilePath(QWT);}
    public String getXztFilePath(){return StrFilePath(XZT);}
    public String getGhtFilePath(){return StrFilePath(GHT);}
    public String getCctFilePath(){return StrFilePath(CCT);}
    public String getGhtrFilePath(){return StrFilePath(GHTR);}
    public String getGhtyFilePath(){return StrFilePath(GHTY);}
    public String StrFilePath(String url){
        if (StringUtils.isNotBlank(url)){
            return url.substring(0,url.lastIndexOf("/"));
        }
        return null;
    }
}
